<?php

define('DOCUMENT_ROOT',  dirname(dirname(dirname(dirname(__FILE__)))));
$associative_values = parse_ini_string(file_get_contents(DOCUMENT_ROOT . '/application/application.ini'), true);
$db_host = $associative_values['database']['db_host'];
$db_user = $associative_values['database']['db_user'];
$db_name = $associative_values['database']['db_name'];
$db_password = $associative_values['database']['db_password'];
define('WEBSERVICE_URL',  $associative_values['application']['http_webroot'].'/getdata/');

global $dbSingleton;

$dbSingleton = new PDO('mysql:host=' . $db_host . ';dbname=' . $db_name, $db_user, $db_password);

